# -*- coding: utf-8 -*-

import os
import sys
import json


if __name__ == "__main__":
    fileNames = os.listdir("./data");
    for fileName in fileNames:
        path = "./data/"+fileName
        with open(path) as file:
            #print file.read()
            content = file.read()
            jsonObj = json.loads(content);
            goods = jsonObj['data']['pagelist']
            for good in goods:
                #print good['title']
                #print good
                print json.dumps(good)

                sys.exit()
